package com.mega32k.mevila.tab;

import com.mega32k.mevila.block.MevilaDustOreBlock;
import com.mega32k.mevila.util.ItemInit;
import net.minecraft.client.resources.I18n;
import net.minecraft.item.ItemGroup;
import net.minecraft.item.ItemStack;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.StringTextComponent;
import net.minecraft.util.text.TranslationTextComponent;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
import net.minecraftforge.registries.ObjectHolder;

public class MevilaBlockTab extends ItemGroup {

    public MevilaBlockTab() {
        super("MevilaBlockItemGroup");
    }

    @OnlyIn(Dist.CLIENT)
    public ITextComponent getGroupName() {
        return new StringTextComponent(I18n.format("tab.mevila.mevilaBlock"));
    }

    @Override
    public ItemStack createIcon() {
        return new ItemStack(ItemInit.MEVILA_DUST_ORE_ITEM.get());
    }

    public static final ItemGroup mevilaBlockTab = (ItemGroup) new MevilaBlockTab();
}
